import { request } from '@ruifox-cms/utils'
//分页获取考生
export function selectExamUserPageUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/paging',
    method: 'post',
    data
  })
} 
//考试注册用户
export function registerExamUserUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/registerExamUser',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 设置请求头
    },
    data
  })
}
//批量注册考试用户
export function batchRegisterExamUserUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/batchRegisterExamUser',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 设置请求头
    },
    data
  })
}
//考试导入Excel表格用户
export function registerExamUserFormExcelUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/registerExamUserFormExcel',
    method: 'post',
    data
  })
}
//延长考试时间
export function extendExamTimeUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/extendExamTime',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 设置请求头
    },
    data
  })
}
//检查用户是否可以参加考试
export function checkUserCanTakeExamUser(params) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/checkUserCanTakeExam',
    method: 'get',
    params
  })
}
//管理员检查用户是否可以参加考试
export function checkUserCanTakeExamAdmin(params) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/checkUserCanTakeExamAdmin',
    method: 'get',
    params
  })
}
//增加用户考试次数
export function increaseTryCountUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/increaseTryCount',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 设置请求头
    },
    data
  })
}
//踢出考试用户
export function kickUserUser(data) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/user/kickUser',
    method: 'post',
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded', // 设置请求头
    },
    data
  })
}
//获取考试webRtc信息
export function getExamSignalsMonitoring(params) {
  return request({
    baseURL: "/10101_api",
    url: '/oltes/api/v1/exam/monitoring/getExamSignals',
    method: 'get',
    params
  })
}